// 重置样式
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
  }
  
  // 滚动条样式
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: #f1f1f1;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: #555;
  }
  
  // 代码块样式
  pre {
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    padding: 1rem;
    border-radius: 8px;
    background: #1e1e1e;
    overflow-x: auto;
    
    code {
      color: #d4d4d4;
    }
  }
  
  code {
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f5f5f5;
    color: #e83e8c;
    font-size: 0.9em;
  }
  
  // 链接样式
  a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
    
    &:hover {
      color: #3b82f6;
    }
  }
  
  // 图片响应式
  img {
    max-width: 100%;
    height: auto;
  }
  
  // 表单元素
  input, textarea, select {
    font-family: inherit;
    font-size: inherit;
  }

  // 按钮样式 - 苹果风格
  .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5;
    color: #fff;
    background: #0071e3;
    border: none;
    border-radius: 980px; // 极圆润的圆角
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
    white-space: nowrap;

    &:hover:not(:disabled) {
      background: #0077ed;
      color: #fff;
    }

    &:active:not(:disabled) {
      background: #006edb;
      transform: scale(0.98);
    }

    &:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      background: #86868b;
    }

    &:focus-visible {
      outline: 3px solid rgba(0, 113, 227, 0.4);
      outline-offset: 2px;
    }
  }

  .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5;
    color: #0071e3;
    background: transparent;
    border: 1px solid #d2d2d7;
    border-radius: 980px;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
    white-space: nowrap;

    &:hover:not(:disabled) {
      background: #f5f5f7;
      border-color: #0071e3;
    }

    &:active:not(:disabled) {
      background: #e8e8ed;
      transform: scale(0.98);
    }

    &:disabled {
      opacity: 0.4;
      cursor: not-allowed;
      color: #86868b;
      border-color: #d2d2d7;
    }

    &:focus-visible {
      outline: 3px solid rgba(0, 113, 227, 0.4);
      outline-offset: 2px;
    }
  }

  .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.5;
    color: #1d1d1f;
    background: #f5f5f7;
    border: none;
    border-radius: 980px;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
    white-space: nowrap;

    &:hover:not(:disabled) {
      background: #e8e8ed;
    }

    &:active:not(:disabled) {
      background: #d2d2d7;
      transform: scale(0.98);
    }

    &:disabled {
      opacity: 0.4;
      cursor: not-allowed;
    }

    &:focus-visible {
      outline: 3px solid rgba(0, 113, 227, 0.4);
      outline-offset: 2px;
    }
  }

  // Icon Button - 苹果风格（无边框）
  .icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    color: #1d1d1f;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    flex-shrink: 0;

    &:hover:not(:disabled) {
      background: rgba(0, 0, 0, 0.04);
    }

    &:active:not(:disabled) {
      background: rgba(0, 0, 0, 0.08);
      transform: scale(0.95);
    }

    &:disabled {
      opacity: 0.4;
      cursor: not-allowed;
    }

    &:focus-visible {
      outline: 2px solid rgba(0, 113, 227, 0.4);
      outline-offset: 2px;
    }
  }

  // 输入框样式优化
  .input {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #374151;
    background-color: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;

    &::placeholder {
      color: #9ca3af;
    }

    &:hover {
      border-color: #d1d5db;
    }

    &:focus {
      border-color: #667eea;
      box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    &:disabled {
      background-color: #f9fafb;
      cursor: not-allowed;
      opacity: 0.6;
    }

    &.border-red-500 {
      border-color: #ef4444;
      
      &:focus {
        border-color: #ef4444;
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
      }
    }
  }

  // 卡片样式
  .card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    &:hover {
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }
  }

  // 容器样式
  .container-custom {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;

    @media (min-width: 640px) {
      padding-left: 1.5rem;
      padding-right: 1.5rem;
    }

    @media (min-width: 1024px) {
      padding-left: 2rem;
      padding-right: 2rem;
    }
  }

  // 动画
  .fade-enter-active,
  .fade-leave-active {
    transition: opacity 0.3s ease;
  }
  
  .fade-enter-from,
  .fade-leave-to {
    opacity: 0;
  }
  
  .slide-enter-active,
  .slide-leave-active {
    transition: transform 0.3s ease;
  }
  
  .slide-enter-from {
    transform: translateX(-100%);
  }
  
  .slide-leave-to {
    transform: translateX(100%);
  }